package org.yxt.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yxt.springcloud.entities.CommonResult;

@Slf4j
@RestController
@RequestMapping(value = "sentinel")
public class SentinelController {

    @GetMapping("testA")
    public CommonResult testA() {
        return new CommonResult(1, "success", "test A");
    }

    @GetMapping("testB")
    public CommonResult testB() {
        return new CommonResult(1, "success", "test B");
    }
}
